package com.gy.yemall.yemallware.dao;

import com.gy.yemall.yemallware.entity.WareSkuEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

/**
 * 商品库存
 * 
 * @author ye
 * @email 2900801226@qq.com
 * @date 2021-09-30 17:24:29
 */
@Mapper
@Component
public interface WareSkuDao extends BaseMapper<WareSkuEntity> {

    void addStock(@Param("skuId") Long skuId, @Param("wareId") Long wareId, @Param("skuNum") Integer skuNum);

    Long selectBySkuId(@Param("skuId") Long skuId);
}
